#include "MarsPrecompile.h"

#include "MarsDepthStencilState.h"
#include "MarsRenderer.h"

using namespace Graphics;

bool DepthStencilState::Create()
{
	HRESULT hr = Renderer::Instance().GetDevice()->CreateDepthStencilState( 
		&m_depthStencilDesc,
		&m_pDepthStencilState );

	if ( FAILED( hr ) )
	{
		return false;
	}

	return true;
}

void DepthStencilState::Delete()
{
	SAFE_RELEASE( m_pDepthStencilState );
}
